package be.kdg.bombermanunlimited.client.Game;

import java.rmi.NotBoundException;
import java.rmi.RemoteException;
import java.rmi.registry.LocateRegistry;

import be.kdg.bombermanunlimited.server.remote.interfaces.IGame;

public class Main {

	ClientGame clientGame;


	public static void main(String arg[]) {
		IGame serverGame = setGameServer();
		ClientGame localGame=  new ClientGame(serverGame);
		// localGame.startGame();
	}

	private static IGame setGameServer() {
		IGame game;
		try {
			game = (IGame) LocateRegistry.getRegistry("127.0.0.1", 2020)
					.lookup("/Game");
			return game;
		} catch (RemoteException e) {
			e.printStackTrace();
		} catch (NotBoundException e) {
			e.printStackTrace();
		}
		return null;
	}


}
